<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="200">

            </colgroup>
            <thead>
            <tr>
                <th>类型</th>

                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>首页广告</td>
                <td>
                    <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit"   data-target="1" >编辑</a>
                </td>
            </tr>
            <tr>
                <td>我的页广告</td>

                <td><a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit"   data-target="2"  >编辑</a></td>
            </tr>

            </tbody>
        </table>



    </div>
</div>
{include file="public/footer" /}

<!--<script src="/static/admin/category/agreement.js?v={$Think.const.TIMESTAMP}" charset="utf-8"></script>-->



<script>
    layui.use(['jquery', 'layer', 'miniAdmin','miniTongji'], function () {
        let $ = layui.jquery,
            layer = layui.layer,
            miniAdmin = layui.miniAdmin,
            miniTongji = layui.miniTongji;

        $(".data-count-edit").click(function (re) {
           let cate= $(this).attr('data-target')

            location.href='/admin/Adverbanner/index?cate='+cate

        });
    });
</script>
</body>
</html>